package com.mtzqc.common.ui.activity

import android.os.Bundle

abstract class CommonActivity : RootActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        beforeCreate(savedInstanceState)
        super.onCreate(savedInstanceState)
        afterCreate(savedInstanceState)
    }

    open fun beforeCreate(savedInstanceState: Bundle?) {

    }

    open fun afterCreate(savedInstanceState: Bundle?) {
        initData(savedInstanceState)
        initContentView(savedInstanceState)
    }

    abstract fun initContentView(savedInstanceState: Bundle?)


    open fun initData(savedInstanceState: Bundle?) {

    }

}